package com.easylinkin.linkappapi.linkage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easylinkin.linkappapi.linkage.entity.LinkageConfigRefDownDevice;
import com.easylinkin.linkappapi.linkage.entity.LinkageConfigRelateServiceParm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 智能规则联动配置关联下行设备表 Mapper 接口
 * </p>
 *
 * @author TongJie
 * @since 2020-05-18
 */
public interface LinkageConfigRelateServiceParmMapper extends BaseMapper<LinkageConfigRelateServiceParm> {

    /**
     * 查询规则联动配置及参数  并补充服务 及参数字段
     *
     * @param linkageConfigRefDownDevice 设备下行
     */
    List<LinkageConfigRelateServiceParm> selectServiceParmExtend(LinkageConfigRefDownDevice linkageConfigRefDownDevice);

    int batchInsert(@Param("list") List<LinkageConfigRelateServiceParm> list);
}
